package com.itkaien.anno.datasourceDemomybatis;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class MyImportSelector  implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {

//        importingClassMetadata 封装了 被 @Import 注解的类信息
        System.out.println(importingClassMetadata);
        System.out.println(People.class.getName());

        return new String[]{Person.class.getName(), People.class.getName()};
    }

}
